package com.ruoyi.cookbook.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 宠物对象 recipe
 * 
 * @author ruoyi
 */
public class Recipe extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 宠物ID */
    private Long recipeId;

    /** 宠物名称 */
    @Excel(name = "宠物名称")
    private String recipeName;

    /** 分类ID */
    @Excel(name = "分类ID")
    private Long categoryId;

    /** 宠物描述 */
    @Excel(name = "宠物描述")
    private String description;

    /** 封面图片 */
    @Excel(name = "封面图片")
    private String coverImage;

    /** 宠物内容 */
    private String petContent;

    /** 年龄 */
    @Excel(name = "年龄", suffix = "岁")
    private Integer age;

    /** 性别 */
    @Excel(name = "性别")
    private Integer gender;

    /** 状态（1待领养 2已确定领养 3已领养） */
    @Excel(name = "状态", readConverterExp = "1=待领养,2=已确定领养,3=已领养")
    private String status;

    /** 删除标志（0代表存在 2代表删除） */
    private String delFlag;

    public void setRecipeId(Long recipeId) 
    {
        this.recipeId = recipeId;
    }

    public Long getRecipeId() 
    {
        return recipeId;
    }
    public void setRecipeName(String recipeName) 
    {
        this.recipeName = recipeName;
    }

    public String getRecipeName() 
    {
        return recipeName;
    }
    public void setCategoryId(Long categoryId) 
    {
        this.categoryId = categoryId;
    }

    public Long getCategoryId() 
    {
        return categoryId;
    }
    public void setDescription(String description) 
    {
        this.description = description;
    }

    public String getDescription() 
    {
        return description;
    }
    public void setCoverImage(String coverImage) 
    {
        this.coverImage = coverImage;
    }

    public String getCoverImage() 
    {
        return coverImage;
    }
    public void setPetContent(String petContent) 
    {
        this.petContent = petContent;
    }

    public String getPetContent() 
    {
        return petContent;
    }
    
    // 兼容旧代码，提供cookbookContent的getter和setter
    public void setCookbookContent(String cookbookContent) 
    {
        this.petContent = cookbookContent;
    }

    public String getCookbookContent() 
    {
        return petContent;
    }
    
    public void setAge(Integer age) 
    {
        this.age = age;
    }

    public Integer getAge() 
    {
        return age;
    }
    public void setGender(Integer gender) 
    {
        this.gender = gender;
    }

    public Integer getGender() 
    {
        return gender;
    }
    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }
    public void setDelFlag(String delFlag) 
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag() 
    {
        return delFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("recipeId", getRecipeId())
            .append("recipeName", getRecipeName())
            .append("categoryId", getCategoryId())
            .append("description", getDescription())
            .append("coverImage", getCoverImage())
            .append("petContent", getPetContent())
            .append("age", getAge())
            .append("gender", getGender())
            .append("status", getStatus())
            .append("delFlag", getDelFlag())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
} 